/**
 * 播放装车视频
 * @author xiaoxujs
 */

import { Modal } from "antd"
import { FC } from "react";
import { basicIp } from "../../../../../api/http";
import { VideoBox } from "../../style";

const VideoModule: FC<{
    open: boolean;
    url?: string;
    handleVideoCallback: () => void
}> = ({
    open,
    url,
    handleVideoCallback
}) => {
        return <Modal title="装车视频" footer={null} open={open} onCancel={handleVideoCallback}>
                  <VideoBox
                src={basicIp + url}
                controls
            ></VideoBox>
          
        </Modal>
    }

export default VideoModule;
